From: Marco Trevisan (TreviƱo) Date: Fri, 31 May 2024 14:46:14 +0000 (+0200) Subject: shell-util: Pass the mutter context to the spawn child setup function X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~226^2^2~101 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=9abad7f25ff40072bed135a0d54e9f0b572ee0fd;p=gnome-shell.git shell-util: Pass the mutter context to the spawn child setup function This was the type the function expected, but we were actually passing the global context to it. This didn't crash for some reason, but indeed it was wrong and we didn't catch it because mutter side had not type-checks either Part-of: --- diff --git a/src/shell-util.c b/src/shell-util.c index 311576c0e..9d1f24018 100644 --- a/src/shell-util.c +++ b/src/shell-util.c @@ -873,7 +873,8 @@ shell_util_spawn_async_with_pipes_and_fds (const char *working_director GPid child_pid = 0; if (!g_spawn_async_with_pipes_and_fds (working_directory, argv, envp, flags, - spawn_child_setup, shell_global, + spawn_child_setup, + shell_global_get_context (shell_global), stdin_fd, stdout_fd, stderr_fd, source_fds, target_fds, n_fds, &child_pid,